package com.ng.sys.service.impl;

import org.springframework.stereotype.Service;

import com.ng.sys.model.domain.UserLog;
import com.ng.sys.service.IUserLog;


@Service
public class UserLogImpl implements IUserLog {

	@Override
	public void saveLog(UserLog sysLog) {
		UserLog userLog = UserLog.dao.findById(sysLog.getId());
		if (userLog == null) {
			sysLog.save();
		} else {
			sysLog.update();
		}
	}
}
